//
//  CustomView.m
//  yigou
//
//  Created by SunChao on 17/1/11.
//  Copyright © 2017年 hanyiwang. All rights reserved.
//

#import "CustomView.h"

@implementation CustomView

-(instancetype)initWithFrame:(CGRect)frame title:(NSString *)title
{
    NSArray *nib = [[NSBundle mainBundle]loadNibNamed:@"View" owner:self options:nil];
    self = [nib objectAtIndex:0];
    if (self) {
//        self.backgroundColor = [UIColor yellowColor];
        self.titleLabel.text =title;
    }
    return self;
}

@end
